package com.example.edu_service.client;

import com.example.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author LUOXIN
 * @create 2021-09-13 14:32
 */

@FeignClient(name = "service-vod",fallback = VodFalseFallback.class)
@Component
public interface VodClient {

    @DeleteMapping("/edu_vod/edu_video/deleteVideo/{id}")
    public R deleteVideo(@PathVariable("id") String id);

    @DeleteMapping("/edu_vod/edu_video/delete-batch")
    public R deleteVideoes(@PathVariable("videoList") List<String> videoList);

    @DeleteMapping("/edu_vod/edu_video/deleteVideoList")
    public R deleteVideoList(@PathVariable("videoList") List<String> videoList);

}
